﻿namespace NIMServerApi.Commons
{
    /// <summary>
    /// code状态表
    /// </summary>
    public enum RetCodes
    {
        /// <summary>
        /// 操作成功
        /// </summary>
        OperatedSuccessful = 200,
        /// <summary>
        /// 客户端版本不对，需升级sdk
        /// </summary>
        ClientVersionError = 201,
        /// <summary>
        /// 被封禁
        /// </summary>
        Banned = 301,
        /// <summary>
        /// 用户名或密码错误
        /// </summary>
        NameOrPasswordError = 302,
        /// <summary>
        /// IP限制
        /// </summary>
        IPLimit = 315,
        /// <summary>
        /// 非法操作或没有权限
        /// </summary>
        IllegalOprationOrNoPermission = 403,
        /// <summary>
        /// 对象不存在
        /// </summary>
        NoObject = 404,
        /// <summary>
        /// 参数长度过长
        /// </summary>
        ParamsTooLong = 405,
        /// <summary>
        /// 对象只读
        /// </summary>
        ObjectReadOnly = 406,
        /// <summary>
        /// 客户端请求超时
        /// </summary>
        ClientRequestTimeOut = 408,
        /// <summary>
        /// 验证失败(短信服务)
        /// </summary>
        SmsServiceValidFailure = 413,
        /// <summary>
        /// 参数错误
        /// </summary>
        ParamsError = 414,
        /// <summary>
        /// 客户端网络问题
        /// </summary>
        ClientNetworkError = 415,
        /// <summary>
        /// 频率控制
        /// </summary>
        FrequencyControl = 416,
        /// <summary>
        /// 重复操作
        /// </summary>
        RepeatOpration = 417,
        /// <summary>
        /// 通道不可用(短信服务)
        /// </summary>
        SmsServiceChannelError = 418,
        /// <summary>
        /// 数量超过上限
        /// </summary>
        MoreThanLimit = 419,
        /// <summary>
        /// 账号被禁用
        /// </summary>
        AccountDisabled = 422,
        /// <summary>
        /// HTTP重复请求
        /// </summary>
        HttpRepeatRequest = 431,
        /// <summary>
        /// 服务器内部错误
        /// </summary>
        ServerInternalError = 500,
        /// <summary>
        /// 服务器繁忙
        /// </summary>
        ServerBusy = 503,
        /// <summary>
        /// 服务不可用
        /// </summary>
        ServerDisabled = 514,
        /// <summary>
        /// 无效协议
        /// </summary>
        InvalidAgreement = 509,
        /// <summary>
        /// 解包错误
        /// </summary>
        UnpackError = 998,
        /// <summary>
        /// 打包错误
        /// </summary>
        PackError = 999,

        //群相关错误码


        OperatedFailure=-1
    }
}